package org.demo.web;

import org.demo.vo.ApiResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

@Controller
public class Test2Controller {
    private static final Logger logger = LoggerFactory.getLogger(Test2Controller.class);

    /**
     * TSDB数据查询
     *
     * @param request
     * @return
     */
    @RequestMapping(value = "/tsdb/find", method = {RequestMethod.GET})
    @ResponseBody
    public ApiResult<String> queryTestDb(HttpServletRequest request) {
        logger.info("OK");
        return new ApiResult<>("ok");
    }


}
